Skip to content

feat(i18n): add Qt-native multilingual UI with Simplified Chinese pack - #71

Merged
benapetr merged 4 commits into
benapetr:masterfrom
KasaneTeto-LLY:feature/i18n-multilingual
Sep 9, 2026
Merged

benapetr merged 4 commits into
benapetr:masterfrom
KasaneTeto-LLY:feature/i18n-multilingual

Conversation

@KasaneTeto-LLY

Copy link
Copy Markdown
Contributor

Add a language selector (Options -> Language: System default / English / 简体中文) backed by the Qt translation system:

  • New I18n module loads tux-manager_.qm and the Qt qtbase_* catalog. Translations are embedded in the binary via CONFIG += lrelease embed_translations (:/i18n/) and are also installed as filesystem .qm files for the .deb.
  • Language preference is stored in General/Language (empty = follow the system locale).
  • Switching languages prompts the user and restarts the application so every widget/model is re-translated consistently.
  • Wrap previously hard-coded process-table headers and process-state strings in tr().
  • Add tux-manager_zh_CN.ts with 399 translated messages (0 unfinished).
  • Package translations under /usr/share/tux-manager/translations/ and add the qt6 qttools/lrelease build dependency for the Debian build.

KasaneTeto-LLY and others added 4 commits September 7, 2026 20:32
Add a language selector (Options -> Language: System default / English /
简体中文) backed by the Qt translation system:

- New I18n module loads tux-manager_<locale>.qm and the Qt qtbase_*
  catalog. Translations are embedded in the binary via
  CONFIG += lrelease embed_translations (:/i18n/) and are also installed
  as filesystem .qm files for the .deb.
- Language preference is stored in General/Language (empty = follow the
  system locale).
- Switching languages prompts the user and restarts the application so
  every widget/model is re-translated consistently.
- Wrap previously hard-coded process-table headers and process-state
  strings in tr().
- Add tux-manager_zh_CN.ts with 399 translated messages (0 unfinished).
- Package translations under /usr/share/tux-manager/translations/ and add
  the qt6 qttools/lrelease build dependency for the Debian build.
we don't need it, that extra menu is cluttering the simple UI layout and
there is virtually no need for user to ever decide to pick a different
language for a tool of this kind from the OS language

that menu where you could explicitly set a language made sense only for
debugging of localizations themselves and that can be overriden via env
var
we are using embed_translations we don't need to ship localizations
twice
@benapetr
benapetr merged commit efc095b into benapetr:master Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants